<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-wap-web-app-capable" content="yes">
    <meta name="apple-wap-web-app-status-bar-style" content="black-translucent">
    <meta name="MobileOptimized" content="240"/>
    <title>职业战队规则</title>
    <link rel="stylesheet" href="$!webPath/css/reset.css" />
    <link rel="stylesheet" href="$!webPath/css/style.css" />
    <script type="text/javascript" src="$!webPath/js/jquery.min.js" ></script>
</head>
<body>
<div class="rule-all">
    <h1>职业战队规则</h1>
    <p>$!proteamRule.content</p>
</div>
<div class="team_rule_agree">
    <input type="checkbox"><span>我以阅读并同意以上条款</span>
</div>
<a href="javascript:void(0)" class="team_rule_footer_g">转职业战队</a>
</body>
<script>
    $(function(){
        getUrlParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return decodeURI(r[2]); return null;
        }
        teamId=getUrlParam('teamId');
    })
    jQuery('.team_rule_agree :checkbox').change(function(){
        //alert(teamId);
        if(jQuery(this).is(':checked')){
            jQuery(this).parent().siblings('a').attr({href:"$!webPath/team/apply_for_career1?teamId="+teamId,class:"team_rule_footer_y"})
        }else{
            jQuery(this).parent().siblings('a').attr({href:"javascript:void(0)",class:"team_rule_footer_g"})
        }
    })
</script>
</html>
